import java.util.ArrayList;

public class text {

    public static void main(String[] args) {
        ArrayList<Integer> list = new ArrayList<>();
        list.add(1);
        ArrayList<Number> list1 = new ArrayList<>(list);
        System.out.println(list1);
    }

    public static void main1(String[] args) {
        MyArrayList myArrayList = new MyArrayList(4);
        myArrayList.add(1, 1100);
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.add(6);
        myArrayList.remove(1100);

        myArrayList.display();

        myArrayList.clear();

        System.out.println("+++++++++++");

        myArrayList.display();

    }
}
